#
#  Copyright (C) 2022 - 2023, Phytium Technology Co., Ltd. All rights reserved.<BR>
#
#  This program and the accompanying materials
#  are licensed and made available under the terms and conditions of the BSD License
#  which accompanies this distribution.  The full text of the license may be found at
#  http://opensource.org/licenses/bsd-license.php
#
#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
#

#include "../S3Resume.h"

.text
.align 2

GCC_ASM_EXPORT(AsmS3SystemOffEntry)
GCC_ASM_EXPORT(AsmS3SystemResetEntry)
GCC_ASM_EXPORT(AsmS3SuspendStartEntry)
GCC_ASM_EXPORT(AsmS3SuspendFinishEntry)
GCC_ASM_EXPORT(AsmS3SuspendEndEntry)

ASM_PFX(AsmS3SystemOffEntry):
  ldr x1, =(0x29820000)
  mov sp, x1
  b S3SystemOffEntry

ASM_PFX(AsmS3SystemResetEntry):
  ldr x1, =(0x29820000)
  mov sp, x1
  b S3SystemResetEntry

ASM_PFX(AsmS3SuspendStartEntry):
  ldr x1, =(0x29820000)
  mov sp, x1
  b S3SuspendStartEntry

ASM_PFX(AsmS3SuspendFinishEntry):
  ldr x1, =(0x29820000)
  mov sp, x1
  b S3SuspendFinishEntry

ASM_PFX(AsmS3SuspendEndEntry):
  ldr x1, =(0x29820000)
  mov sp, x1
  b S3SuspendEndEntry
